package com.hades.example.java.refactoring.after.c11.c11_3_pull_up_constructor_body;

public class Employee {
    protected String _name;
    protected String _id;

    public Employee(String name, String id) {
        _name = name;
        _id = id;
    }

    public String getName() {
        return _name;
    }

    public String getId() {
        return _id;
    }

    protected boolean isPriviliged() {
        return false;
    }

    protected void assignCar() {
    }

    protected void init() {
        if (isPriviliged()) {
            assignCar();
        }
    }
}